package cn.stylefeng.guns.modular.goodstree.mapper;

import cn.stylefeng.guns.base.pojo.node.TreeviewNode;
import cn.stylefeng.guns.base.pojo.node.ZTreeNode;
import cn.stylefeng.guns.modular.goodstree.entity.LiuTree;
import cn.stylefeng.guns.modular.goodstree.model.params.LiuTreeParam;
import cn.stylefeng.guns.modular.goodstree.model.result.LiuTreeResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品树表 Mapper 接口
 * </p>
 *
 * @author lcl
 * @since 2019-07-15
 */
public interface LiuTreeMapper extends BaseMapper<LiuTree> {

    /**
     * 获取列表
     *
     * @author lcl
     * @Date 2019-07-15
     */
    List<LiuTreeResult> customList(@Param("paramCondition") LiuTreeParam paramCondition);

    /**
     * 获取map列表
     *
     * @author lcl
     * @Date 2019-07-15
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") LiuTreeParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author lcl
     * @Date 2019-07-15
     */
    Page<LiuTreeResult> customPageList(@Param("page") Page page, @Param("paramCondition") LiuTreeParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author lcl
     * @Date 2019-07-15
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") LiuTreeParam paramCondition);


    List<ZTreeNode> tree();

    List<TreeviewNode> treeviewNodes();

    Page<Map<String, Object>> list(Page page, String condition);

    void  delete(Long brandId);
}
